package com.situ.bean;

public class Cart {
    private int userid;
    private int productid;
    private int number;


    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getProductid() {
        return productid;
    }

    public void setProductid(int productid) {
        this.productid = productid;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "userid=" + userid +
                ", productid=" + productid +
                ", number=" + number +
                '}';
    }
    public Cart(int userid, int productid, int number) {
        this.userid = userid;
        this.productid = productid;
        this.number = number;
    }

    public Cart() {
    }
}
